-- GENERATED SPELL FOR [Silvermoon Apprentice] --


function spell0_15971(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(20811,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15971', 3000, 1)
end

function Sorts_15971(pUnit, Event)
local choix_sorts_15971 = math.random(0, 0)
if choix_sorts_15971 == 0 then
pUnit:RegisterEvent('spell0_15971', 1, 1)
end
end

function mob15971_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15971', math.random(1500, 3000), 1)
end

function mob15971_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15971_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15971_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15971, 1, 'mob15971_Action')
RegisterUnitEvent(15971, 2, 'mob15971_Leave')
RegisterUnitEvent(15971, 3, 'mob15971_Kill')
RegisterUnitEvent(15971, 4, 'mob15971_Die')
